import gasUsers from '@/views/monitoringWarning/components/gasUsers/index.vue';
import pipelineInfo from '@/views/monitoringWarning/components/pipelineInfo/index.vue';
import siteInfo from '@/views/monitoringWarning/components/siteInfo/index.vue';
import networkRiskGrading from '@/views/monitoringWarning/components/networkRiskGrading/index.vue';
import thirdPartyRisk from '@/views/monitoringWarning/components/thirdPartyRisk/index.vue';
import rescueForces from '@/views/monitoringWarning/components/rescueForces/index.vue';
import monitoringEquipment from '@/views/monitoringWarning/components/monitoringEquipment/index.vue';
import deviceAlarms from '@/views/monitoringWarning/components/deviceAlarms/index.vue';
import alarmType from '@/views/monitoringWarning/components/alarmType/index.vue';
import realTimeMonitoring from '@/views/monitoringWarning/components/realTimeMonitoring/index.vue';
import destructionMonitor from '@/views/monitoringWarning/components/destructionMonitor/index.vue';
import incidentDisposition from '@/views/monitoringWarning/components/incidentDisposition/index.vue';
import alertOverview from '@/views/monitoringWarning/components/alertOverview/index.vue';
import routerButton from '@/views/monitoringWarning/components/routerButton/index.vue';
import topComponents from '@/views/monitoringWarning/components/topComponent/index.vue';
import haikangVideo from '@/components/haikangH5Video/index.vue';
import videoComManagement from '@/components/videoComManagement/index.vue';
import legendMark from '@/components/legend/index.vue';

import { App } from 'vue';

const dynamicComponents = {
  gasUsers,
  pipelineInfo,
  siteInfo,
  networkRiskGrading,
  thirdPartyRisk,
  rescueForces,
  monitoringEquipment,
  deviceAlarms,
  alarmType,
  realTimeMonitoring,
  destructionMonitor,
  incidentDisposition,
  alertOverview,
  routerButton,
  topComponents,
  haikangVideo,
  videoComManagement,
  legendMark
};
export default {
  install(app: App) {
    Object.keys(dynamicComponents).forEach((key) => {
      app.component(key, dynamicComponents[key]);
    });
  }
};
